//
//  SignalRing.m
//  Portable Traffic Signal Assistor
//
//  Created by Hao Xu on 4/1/12.
//  Copyright (c) 2012 TTU. All rights reserved.
//

#import "SignalRing.h"

@implementation SignalRing

@synthesize ringID=_ringID;
@synthesize barrierList=_barrierList;

- (id) init
{
    self=[super init];
    if (self) {
        self.barrierList=[[[NSMutableArray alloc] init] autorelease];
        for (int i=0; i<[SMRTStaticConfiguration getMaximumBarrierNumber]; i++) {
            [self.barrierList addObject:[[[SignalBarrierGroup alloc] init] autorelease]];
        }
    }
    return self;
}

- (void) dealloc
{
    [_ringID release];
    [_barrierList release];
    [super dealloc];
}

@end
